import React from 'react';

// 每一个都具名导出
export function Hello1() {
  return <h1>导入导出函数组件</h1>;
}

// 每一个都具名导出
export class Hello2 extends React.Component {
  render() {
    return <h1>导入导出类组件</h1>;
  }
}

const Lib = { Hello1, Hello2 };
export default Lib;
